package com.smsc.headend.task.engine.service.collection;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smsc.headend.module.data.entity.HdCollMeterIntegrity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author liangli
 * @date 2020/12/7
 */
public interface IntegrityService extends IService<HdCollMeterIntegrity> {
    HdCollMeterIntegrity getHdCollMeterIntegrity(Long meterId, Long tvOfDay, Long lpDataItemId, Integer intervalTime);

    HdCollMeterIntegrity insert(HdCollMeterIntegrity hdCollMeterIntegrity);

    HdCollMeterIntegrity updateIntegrity(HdCollMeterIntegrity hdCollMeterIntegrity);

    List<HdCollMeterIntegrity> getHdCollMeterIntegrityList(Long meterId, Long tvOfDay, Long lpDataItemId);

    String getIntegrityDetailInCache(Long meterId, Long tvOfDay, Long lpDataItemId, Integer intervalTime);

    void meterLpDataSaveToCache(Map<String, Set<Long>> meterLpDataTvMap);

}
